﻿<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <link href="~/Resource/vendor/simple-line-icons/css/simple-line-icons.css" rel="stylesheet" />
    <link href="~/Resource/vendor/font-awesome/css/fontawesome-all.min.css" rel="stylesheet" />
    <link href="~/Resource/css/styles.css" rel="stylesheet" />
    <link href="~/Resource/css/manage.css" rel="stylesheet" />
    <link href="~/Resource/vendor/toastr/toastr.min.css" rel="stylesheet" />

    <title>@ViewBag.Title</title>

    @RenderSection("ChildPageCss", false)
</head>
<body class="sidebar-fixed header-fixed">
    <div class="page-wrapper">
        <nav class="navbar page-header" style="padding-top: 0; padding-bottom:0;">
            <a href="#" class="btn btn-link sidebar-mobile-toggle d-md-none mr-auto">
                <i class="fa fa-bars"></i>
            </a>
            <a class="navbar-brand" href="#">
                <img src="/Resource/img/logo3.png" alt="logo" style="height: 40px;">
            </a>

            <ul class="navbar-nav ml-auto">
                <li class="nav-item dropdown">
                    <a class="nav-link" href="#" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                        <img src="/Resource/img/user1.png" class="avatar avatar-sm" alt="logo">
                        <span class="small ml-1 d-md-down-none">管理员</span>
                    </a>

                   

                </li>
                <li class="nav-item d-md-down-none" style="margin-left:4px;">
                    <a href="/Home/LoginOut" class="btn btn-outline-primary btn-sm">退出</a>
                </li>

            </ul>
        </nav>

        <div class="main-container">
            <div class="sidebar" style="background-color: #393b6a;">
                <nav class="sidebar-nav">
                    <ul class="nav">
                        @*<li id="PeriodicalManager" class="nav-item nav-dropdown" style="border-bottom: 1px solid #5a5b84;">
                                <a href="#" class="nav-link nav-dropdown-toggle" style="color:#fff;">
                                    <i class="icon icon-note"></i>期刊<i class="fa fa-caret-left"></i>
                                </a>
                                <ul class="nav-dropdown-items" style="background-color:#034998;">
                                    <li class="nav-item" id="ExpertManager_TypeIndex">
                                        <a href="/PeriodicalManager" class="nav-link" style="color:#fff;">
                                            <i class="icon icon-note"></i>期刊发布
                                        </a>
                                    </li>
                                    <li class="nav-item" id="ExpertManager_Index">
                                        <a href="/PeriodicalManager/BaseInfo" class="nav-link">
                                            <i class="icon icon-puzzle"></i> 期刊管理
                                        </a>
                                    </li>
                                </ul>
                            </li>*@
                        <li id="UserManager" class="nav-item" style="border-bottom: 1px solid #5a5b84;">
                            <a href="/UserManager" class="nav-link" style="color: #fff;">
                                <i class="icon icon-people" style="color: #fff;"></i> 用户管理
                            </a>
                        </li>
                        <li id="AppManager" class="nav-item active" style="border-bottom: 1px solid #5a5b84;">
                            <a href="/AppManager" class="nav-link" style="color: #fff;">
                                <i class="icon icon-handbag" style="color: #fff;"></i> 应用管理
                            </a>
                        </li>
                        <li id="RoleManager" class="nav-item" style="border-bottom:solid 1px #266ec2;">
                            <a href="/RoleManager" class="nav-link" style="color:#fff;">
                                <i class="icon icon-grid"></i>权限角色
                            </a>
                        </li>
                    </ul>
                </nav>
            </div>

            <div class="content">

                @RenderBody()

            </div>

        </div>
    </div>
    <div class="container">
        <div class="row">
            <div class="col-md-12">
                @*<p style="width:100%; text-align: center; font-size: 12px; color: #636363; margin-bottom:10px;">@("@")</p>*@
            </div>
        </div>
    </div>



    <script src="~/Scripts/jquery-1.10.2.min.js"></script>
    <script src="~/Resource/js/carbon.js"></script>
    <script src="~/Resource/vendor/toastr/toastr.min.js"></script>
    <script src="~/Resource/js/Notic.js"></script>
    <script>



        var c = "@ViewContext.RouteData.Values["controller"].ToString().Replace("Controller", "")";

        var a = "@ViewContext.RouteData.Values["action"].ToString()";

        SetManMenu(c,a);

        function SetManMenu(c,a)
        {
            $(".nav-item").removeClass("active");
            $(".nav-dropdown").removeClass("open");
            $("#" + c + "_" + a).addClass("active");

            if ($("#" + c) != undefined)
            {
                $("#" + c).addClass("open");
            }
        }

    </script>

    @RenderSection("ChildPageScript", false)
</body>
</html>
